package com.hefei.mybatisplus.mp.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @author caizhengjun
 * @date 2020/10/9 4:04 下午
 */

@Getter
public enum GradeEnum {

    /**
     * 枚举
     */
    PRIMARY(1, "小学"),
    SECONDORY(2, "中学"),
    HIGH(3, "高中");

    GradeEnum(int code, String descp) {
        this.code = code;
        this.descp = descp;
    }

    @EnumValue
    private final int code;

    @JsonValue
    private final String descp;

}
